//
//  YDOptionalNoDataView.h
//  PeiZiWangBei
//
//  Created by LK-IOS on 2017/11/21.
//  Copyright © 2017年 LK-IOS. All rights reserved.
//

#import <UIKit/UIKit.h>

@class YDOptionalNoDataView;

//显示数据类型
typedef NS_ENUM(NSUInteger, SYOptionalNoDataViewButtonStyle) {
    SYOptionalNoDataViewStyleDefault,//0   deafault
   SYOptionalNoDataViewStyleSearch,//1
};

@protocol SYOptionalNoDataViewDelegate <NSObject>

@optional

/**
 点击按钮

 @param dataView 本身
 @param style 按钮类型
 */
-(void)optionalNoDataView:(YDOptionalNoDataView *)dataView buttonStyle:(SYOptionalNoDataViewButtonStyle)style searchString:(NSString *)searchString;


@end

@interface YDOptionalNoDataView : UIView

@property (nonatomic , strong) NSMutableArray *titleArray;

+ (instancetype)optionalNoDataViewWithTitleArray:(NSArray *)titleArray;


@property (nonatomic , weak)id<SYOptionalNoDataViewDelegate>delegate;

@end
